<template>
  <footer class="footer">
    <div class="footer-main">
      <div class="container">
        <div class="footer-content">
          <div class="footer-section">
            <h3 class="footer-title">{{ $t('footer.company') }}</h3>
            <ul class="footer-links">
              <li><a href="#">{{ $t('about.company.intro') }}</a></li>
              <li><a href="#">海康威视公益</a></li>
              <li><a href="#">投资者关系</a></li>
              <li><a href="#">可持续发展</a></li>
              <li><a href="#">招贤纳士</a></li>
            </ul>
          </div>
          
          <div class="footer-section">
            <h3 class="footer-title">{{ $t('footer.news') }}</h3>
            <ul class="footer-links">
              <li><a href="#">{{ $t('home.news.category.company') }}</a></li>
              <li><a href="#">{{ $t('home.news.category.tech') }}</a></li>
              <li><a href="#">{{ $t('home.news.category.industry') }}</a></li>
              <li><a href="#">{{ $t('home.news.category.activity') }}</a></li>
              <li><a href="#">{{ $t('home.news.category.product') }}</a></li>
            </ul>
          </div>
          
          <div class="footer-section">
            <h3 class="footer-title">{{ $t('footer.products') }}</h3>
            <ul class="footer-links">
              <li><a href="#">海康云商</a></li>
              <li><a href="#">海康云曜</a></li>
              <li><a href="#">海康云眸</a></li>
              <li><a href="#">海康互联</a></li>
              <li><a href="#">海康合作伙伴</a></li>
            </ul>
          </div>
          
          <div class="footer-section">
            <h3 class="footer-title">{{ $t('footer.contact') }}</h3>
            <div class="contact-info">
              <p><i class="el-icon-phone"></i> 400-700-8888</p>
              <p><i class="el-icon-message"></i> service@hikvision.com</p>
              <p><i class="el-icon-location"></i> 杭州市滨江区阡陌路555号</p>
            </div>
            <div class="social-links">
              <a href="#" class="social-link"><i class="el-icon-chat-dot-round"></i></a>
              <a href="#" class="social-link"><i class="el-icon-phone"></i></a>
              <a href="#" class="social-link"><i class="el-icon-message"></i></a>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="footer-bottom">
      <div class="container">
        <div class="footer-bottom-content">
          <div class="copyright">
            <p>{{ $t('footer.copyright') }}</p>
            <p>浙ICP备05007700号 浙公网安备 33010802004037号</p>
          </div>
          <div class="footer-bottom-links">
            <a href="#">隐私条款</a>
            <a href="#">法律声明</a>
            <a href="#">侵权产品举报</a>
          </div>
        </div>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'Footer'
}
</script>

<style lang="scss" scoped>
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  
  .footer-main {
    padding: 60px 0 40px;
    
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
    }
    
    .footer-section {
      .footer-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #fff;
        position: relative;
        
        &::after {
          content: '';
          position: absolute;
          bottom: -8px;
          left: 0;
          width: 30px;
          height: 2px;
          background: #409eff;
        }
      }
      
      .footer-links {
        list-style: none;
        
        li {
          margin-bottom: 12px;
          
          a {
            color: #bdc3c7;
            text-decoration: none;
            transition: color 0.3s ease;
            
            &:hover {
              color: #409eff;
            }
          }
        }
      }
      
      .contact-info {
        p {
          margin-bottom: 12px;
          color: #bdc3c7;
          display: flex;
          align-items: center;
          gap: 8px;
          
          i {
            color: #409eff;
            width: 16px;
          }
        }
      }
      
      .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        
        .social-link {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 40px;
          height: 40px;
          background: #34495e;
          color: #bdc3c7;
          border-radius: 50%;
          text-decoration: none;
          transition: all 0.3s ease;
          
          &:hover {
            background: #409eff;
            color: #fff;
            transform: translateY(-2px);
          }
        }
      }
    }
  }
  
  .footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    
    .footer-bottom-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      
      .copyright {
        p {
          margin: 0;
          font-size: 14px;
          color: #7f8c8d;
          
          &:first-child {
            margin-bottom: 5px;
          }
        }
      }
      
      .footer-bottom-links {
        display: flex;
        gap: 20px;
        
        a {
          color: #7f8c8d;
          text-decoration: none;
          font-size: 14px;
          transition: color 0.3s ease;
          
          &:hover {
            color: #409eff;
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .footer {
    .footer-main {
      padding: 40px 0 30px;
      
      .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
      }
    }
    
    .footer-bottom {
      .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
      }
    }
  }
}
</style>

